package com.yuexin.project.statistic.aroundDinner.service;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yuexin.common.support.Convert;
import com.yuexin.project.statistic.aroundDinner.domain.AroundDinner;
import com.yuexin.project.statistic.aroundDinner.mapper.AroundDinnerMapper;

/**
 * 围餐明细 服务层实现
 * 
 * @author yuexin
 * @date 2018-10-17
 */
@Service
public class AroundDinnerServiceImpl implements IAroundDinnerService 
{
	@Autowired
	private AroundDinnerMapper aroundDinnerMapper;

	/**
     * 查询围餐明细信息
     * 
     * @param aroundId 围餐明细ID
     * @return 围餐明细信息
     */
    @Override
	public AroundDinner selectAroundDinnerById(Integer aroundId)
	{
	    return aroundDinnerMapper.selectAroundDinnerById(aroundId);
	}
	
	/**
     * 查询围餐明细列表
     * 
     * @param aroundDinner 围餐明细信息
     * @return 围餐明细集合
     */
	@Override
	public List<AroundDinner> selectAroundDinnerList(AroundDinner aroundDinner)
	{
	    return aroundDinnerMapper.selectAroundDinnerList(aroundDinner);
	}
	
    /**
     * 新增围餐明细
     * 
     * @param aroundDinner 围餐明细信息
     * @return 结果
     */
	@Override
	public int insertAroundDinner(AroundDinner aroundDinner)
	{
	    return aroundDinnerMapper.insertAroundDinner(aroundDinner);
	}
	
	/**
     * 修改围餐明细
     * 
     * @param aroundDinner 围餐明细信息
     * @return 结果
     */
	@Override
	public int updateAroundDinner(AroundDinner aroundDinner)
	{
	    return aroundDinnerMapper.updateAroundDinner(aroundDinner);
	}

	/**
     * 删除围餐明细对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteAroundDinnerByIds(String ids)
	{
		return aroundDinnerMapper.deleteAroundDinnerByIds(Convert.toStrArray(ids));
	}
	
}
